﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace housingsafety.server.Models
{

    public class BaiduAddressQueryResponse
    {
        public int status { get; set; }
        public string message { get; set; }
        public string result_type { get; set; }
        public List<BaiduAddress> results { get; set; }
    }

    public class BaiduAddress
    {
        public string name { get; set; }
        public Location? location { get; set; }
        public string address { get; set; }
        public string province { get; set; }
        public string city { get; set; }
        public string area { get; set; }
        public int detail { get; set; }
        public string uid { get; set; }
        public string street_id { get; set; }

        public int num { get; set; }
    }

    public class Location
    {
        public float lat { get; set; }
        public float lng { get; set; }
    }

}
